Storing Calculated Values

You can select where to write the results of the script processing. The results may be written as the value of the HSS point that contains the script, or to any other point in an HSS or UIS. CygNet recommends that the status of the scripting process be written to the HSS, and the resulting value be written to a UIS tag. For example, the value "INIT" can be used to indicate that the HyperPoint has been initialized, "SUCCESS" to indicate successful script processing, or "FAILED" to indicate that a problem occurred in the script processing. If the script is successful, the generated value can be written to a UIS tag. This technique can be used to make a visual check of the scripts in the HSS, and set up alarms and history for the HSS points to track errors. Also, writing values to UIS tags helps to ensure that data associated with a device or process is grouped together.

Note: If you are using a numeric trending tool such as the Trend Tool, you can add a number to the beginning of the status description, such as "2:FAILED."  The history of the status for scripts may then be trended more easily.